From 501c7afd70ed211cb203107a90387334499877a5 Mon Sep 17 00:00:00 2001 From: robertl Date: Thu, 15 Aug 2002 06:14:18 +0000 Subject: [PATCH] Improve test for posixicity --- gpsbabel/magproto.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/gpsbabel/magproto.c b/gpsbabel/magproto.c index 0160fb2d6..2fc47d724 100644 --- a/gpsbabel/magproto.c +++ b/gpsbabel/magproto.c @@ -294,7 +294,21 @@ return; mag_writeack(isum); } -#if _POSIX_SOURCE +#if __WIN32__ +static +void +terminit() +{ +} + +static +void +termdeinit() +{ +} + +#else + #include static struct termios orig_tio; static void @@ -324,20 +338,6 @@ termdeinit() } #endif -#if __WIN32__ -static -void -terminit() -{ -} - -static -void -termdeinit() -{ -} -#endif - static void mag_rd_init(const char *portname) -- 2.30.2